import request from '@/utils/request'

// 查询采购入库单列表 - 分页
export function queryTPurPriceList(data) {
  return request({
    url: '/tStkInstock/queryStkStockList',
    method: 'post',
    data
  })
}
// 查询采购入库单详情
export function queryStkStockDetails(params) {
  return request({
    url: '/tStkInstock/queryStkStockDetails',
    method: 'get',
    params
  })
}
// 修改采购入库
export function updateStkStock(data) {
  return request({
    url: '/tStkInstock/updateStkStock',
    method: 'put',
    data
  })
}
// 采购入库下推采购退库单
export function pushMrb(data) {
  return request({
    url: '/tPurMrb/pushMrb',
    method: 'post',
    data
  })
}
// 采购入库下推应付单
export function pushToFinPayable(data) {
  return request({
    url: '/tFinPayable/pushToFinPayable',
    method: 'post',
    data
  })
}
// 提交采购入库
export function stkinSubmit(data) {
  return request({
    url: '/tStkInstock/stkinSubmit',
    method: 'put',
    data
  })
}
// 反提交采购入库
export function stkinAuSubmit(data) {
  return request({
    url: '/tStkInstock/stkinAuSubmit',
    method: 'put',
    data
  })
}
// 采购入库审核
export function stkinAudit(data) {
  return request({
    url: '/tStkInstock/stkinAudit',
    method: 'put',
    data
  })
}
// 采购入库反审核
export function stkinUnAudit(data) {
  return request({
    url: '/tStkInstock/stkinUnAudit',
    method: 'put',
    data
  })
}
// 删除采购入库单（新）
export function stkinDelete(data) {
  return request({
    url: '/tStkInstock/stkinDelete',
    method: 'put',
    data
  })
}
// 禁用采购入库单（新）
export function stkindisable(data) {
  return request({
    url: '/tStkInstock/stkindisable',
    method: 'put',
    data
  })
}
// 关闭采购入库单（新）
export function stkinClose(data) {
  return request({
    url: '/tStkInstock/stkinClose',
    method: 'put',
    data
  })
}
// 反关闭采购入库单（新）
export function stkinUnClose(data) {
  return request({
    url: '/tStkInstock/stkinUnClose',
    method: 'put',
    data
  })
}
// 采购退库单 下推 应付单
export function returnPushToFinPayable(data) {
  return request({
    url: '/tFinPayable/returnPushToFinPayable',
    method: 'put',
    data
  })
}
